<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <ul id="ul"></ul>
    <script type='module'>
      import Mustache from './mylib/mustache.js'
      let ul = document.getElementById("ul");
      let tempStr = `
        <h1>我今天意外收获了{{thing}}，非常{{mood}}！</h1>
            `;
      let data = {
        thing: '腾讯的offer',
        mood: '开❤'
      };
      var domStr =  Mustache.render(tempStr,data)
      ul.innerHTML = domStr
    </script>
  </body>
</html>
